<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'FirstPage.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" href="css/pintuer.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jquery.js"></script>
<script src="js/pintuer.js"></script>

  </head>
  
  <body>
  <div class="panel admin-panel">
  <div class="panel-head"><strong class="icon-reorder"> 内容列表</strong></div>
 
  <table class="table table-hover text-center">
  
    <tr>
      <th >ID</th>
      <th >名称</th>
      <th >展示位置</th>
      <th >操作</th>
    </tr>
  
  
    <c:forEach var="vm" items="${list}" >
  
         <tr>	
      	 <td>${vm.videoid }</td> 
         <td>${vm.videoname}</td>
         <td>${vm.videoarea }</td>
         <td><div class="button-group">
         <a class="button border-main" href="/videomessage/get.do?videoid=${vm.videoid}"><span class="icon-edit"    "><span class="icon-edit"></span> 修改</a>
       
      </div></td>
    </tr>
    </c:forEach>
    <tr>
      <td colspan="8"><div class="pagelist"> 
        <a href="/videomessage/getHomePage.do?pageNum=1">首页</a> 
    
        <c:set var="num" value="${pageNum}"></c:set>  
        <c:choose>
        <c:when test="${pageNum==1}">
        <a href="/videomessage/getHomePage.do?pageNum=1">上一页</a>
        </c:when>
         <c:otherwise>
         <a href="/videomessage/getHomePage.do?pageNum=${pageNum-1}">上一页</a>
         </c:otherwise>
        </c:choose>
        
        <c:choose>
        <c:when test="${pageNum eq pageMax}"><a href="/videomessage/getHomePage.do?pageNum=${pageMax}">下一页</a></c:when>
        <c:otherwise>
        <a href="/videomessage/getHomePage.do?pageNum=${pageNum+1}">下一页</a>
        </c:otherwise>
        </c:choose>
        <a href="#">${pageNum}/${pageMax}</a>
        <a href="/videomessage/getHomePage.do?pageNum=${pageMax}">尾页</a></td>
      </tr>     
     
     
 
   
  
    
  </table>
</div>
<script type="text/javascript">
function del(id,mid){
	if(confirm("您确定要删除吗?")){
	
	}
}
</script>


   
   
   
   
   
   
   
   
   
   
   
   
   
  </body>
</html>
